import requests

from util.request_utils import *

# 需要替换成你的实际数据和cookies
url = "https://m.douban.com/rexxar/api/v2/ceorl/poll/question/7153764/answer"
cookies = {
    'dbcl2': '147813837:AnVMA0yvbBo',
}
headers = {
    'Referer': 'https://m.douban.com/poll/question/7679055/',
    'User-Agent': 'Mozilla/5.0 (iPhone; CPU iPhone OS 13_2_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0.3 Mobile/15E148 Safari/604.1',
    'X-Requested-With': 'XMLHttpRequest'
}
payload = {
    'answer': '6666666',  # 可能是选项ID或文本，取决于问题类型
    'ck': 'eGpL',  # 通常需要从页面中获取
    'question_id': '7153764'
}
response = ownRequest(url, "post", headers=headers, data=payload,cookies=cookies)

#response = requests.post(url, headers=headers, cookies=cookies, data=data)

print(response.status_code)
print(response.json())
